package com.example.fridaykt.common.constant

/**
 * 通用常量信息
 */
object Constants {
    /**
     * UTF-8 字符集
     */
    const val UTF8: String = "UTF-8"

    /**
     * 通用成功标识
     */
    const val SUCCESS: String = "0"

    /**
     * 通用失败标识
     */
    const val FAIL: String = "1"

    /**
     * 登录成功
     */
    const val LOGIN_SUCCESS: String = "Success"

    /**
     * 注销
     */
    const val LOGOUT: String = "Logout"

    /**
     * 登录失败
     */
    const val LOGIN_FAIL: String = "Error"

    /**
     * 验证码 redis key
     */
    const val CAPTCHA_CODE_KEY: String = "captcha_codes:"

    /**
     * 登录用户 redis key
     */
    const val LOGIN_TOKEN_KEY: String = "login_tokens:"

    /**
     * 令牌
     */
    const val TOKEN: String = "token"

    /**
     * 令牌前缀
     */
    const val TOKEN_PREFIX: String = "Bearer "

    /**
     * 令牌前缀
     */
    const val LOGIN_USER_KEY: String = "login_user_key"

    /**
     * 用户ID
     */
    const val JWT_USERID: String = "userid"

    /**
     * 用户头像
     */
    const val JWT_AVATAR: String = "avatar"

    /**
     * 创建时间
     */
    const val JWT_CREATED: String = "created"

    /**
     * 用户权限
     */
    const val JWT_AUTHORITIES: String = "authorities"

    /**
     * 资源映射路径 前缀
     */
    const val RESOURCE_PREFIX: String = "/profile"
}
